.class public Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "AddBGPictureActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$e;
    }
.end annotation


# instance fields
.field private A:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;

.field private m:Les/cd;

.field private n:[Ljava/lang/String;

.field private o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

.field private p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

.field private q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

.field private r:Landroid/view/View;

.field private s:Landroid/view/View;

.field private t:Landroid/widget/ImageView;

.field private u:Landroid/view/View;

.field private v:I

.field private w:I

.field private x:Z

.field private y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

.field private z:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$d;


# direct methods
.method public constructor <init>()V
    .locals 4

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "CropRender"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const-string v1, "RotateRender"

    const/4 v3, 0x1

    aput-object v1, v0, v3

    .line 2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->n:[Ljava/lang/String;

    .line 3
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->v:I

    .line 4
    iput v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->w:I

    .line 5
    iput-boolean v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->x:Z

    .line 6
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$d;

    .line 7
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$c;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->A:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;

    return-void
.end method

.method private I()V
    .locals 3

    .line 1
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_video_edit_bg_picture_panel:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    .line 2
    sget v1, Les/x4;->player_bg:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->t:Landroid/widget/ImageView;

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    sget v1, Les/x4;->player_bg_delete_icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->u:Landroid/view/View;

    .line 4
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    .line 6
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setBackgroundView(Landroid/view/View;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->g:Les/cd$c;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/cd$c;->d:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 8
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;-><init>()V

    .line 9
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->g:Les/cd$c;

    iget v2, v1, Les/cd$c;->a:I

    iput v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->a:I

    .line 10
    iget v2, v1, Les/cd$c;->b:I

    iput v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->b:I

    .line 11
    iget-object v2, v1, Les/cd$c;->c:Ljava/lang/String;

    iput-object v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->c:Ljava/lang/String;

    .line 12
    iget-object v1, v1, Les/cd$c;->d:Landroid/graphics/Bitmap;

    iput-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    .line 13
    invoke-direct {p0, v1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->a(Landroid/graphics/Bitmap;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V

    goto :goto_0

    .line 14
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->R()V

    :goto_0
    return-void
.end method

.method private J()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;)V

    return-void
.end method

.method private K()V
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    .line 2
    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$Mode;->RECOMMENDED:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$Mode;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->setMode(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$Mode;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$d;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->setOnSelectedListener(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$d;)V

    .line 5
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    .line 6
    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$Mode;->LOCAL:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$Mode;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->setMode(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$Mode;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$d;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->setOnSelectedListener(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$d;)V

    .line 9
    sget v0, Les/x4;->durec_add_picture_view_pager:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    const/4 v1, 0x0

    .line 10
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;->setScrollable(Z)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    new-instance v2, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$e;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$e;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$a;)V

    invoke-virtual {v0, v2}, Landroidx/viewpager/widget/ViewPager;->setAdapter(Landroidx/viewpager/widget/PagerAdapter;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->A:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;

    invoke-virtual {v0, v2}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Landroidx/viewpager/widget/ViewPager;->setOffscreenPageLimit(I)V

    .line 14
    sget v0, Les/x4;->durec_add_picture_tab_layout:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/ui/DuTabLayout;

    .line 15
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/ui/DuTabLayout;->setupWithViewPager(Landroidx/viewpager/widget/ViewPager;)V

    .line 16
    invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout;->getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab;

    move-result-object v1

    sget v2, Les/z4;->durec_recommended:I

    invoke-virtual {v1, v2}, Lcom/google/android/material/tabs/TabLayout$Tab;->setText(I)Lcom/google/android/material/tabs/TabLayout$Tab;

    const/4 v1, 0x1

    .line 17
    invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout;->getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab;

    move-result-object v0

    sget v1, Les/z4;->durec_local_image:I

    invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout$Tab;->setText(I)Lcom/google/android/material/tabs/TabLayout$Tab;

    .line 18
    sget v0, Les/x4;->durec_add_picture_preview_btn:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->r:Landroid/view/View;

    .line 19
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private L()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->M()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->N()V

    return-void
.end method

.method private M()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v0

    goto :goto_0

    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->v:I

    .line 2
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    goto :goto_1

    :cond_1
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->w:I

    .line 3
    :goto_1
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->e:Les/cd$q;

    if-eqz v2, :cond_2

    .line 4
    iget-object v2, v2, Les/cd$q;->a:Ljava/util/List;

    invoke-static {p0, v2, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/r;->a(Landroid/content/Context;Ljava/util/List;II)V

    .line 5
    :cond_2
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->l:Les/cd$k;

    if-eqz v2, :cond_3

    .line 6
    iget-object v2, v2, Les/cd$k;->a:Ljava/util/List;

    invoke-static {p0, v2, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/k;->a(Landroid/content/Context;Ljava/util/List;II)V

    :cond_3
    return-void
.end method

.method private N()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->f:Les/cd$e;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v0

    goto :goto_0

    :cond_1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->v:I

    .line 3
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    goto :goto_1

    :cond_2
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->w:I

    .line 4
    :goto_1
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->f:Les/cd$e;

    iget-object v3, v2, Les/cd$e;->a:Les/cd$g;

    .line 5
    iget-object v2, v2, Les/cd$e;->b:Les/cd$g;

    if-nez v3, :cond_3

    if-nez v2, :cond_3

    return-void

    :cond_3
    if-eqz v3, :cond_4

    .line 6
    iget-boolean v2, v3, Les/cd$g;->l:Z

    goto :goto_2

    .line 7
    :cond_4
    iget-boolean v2, v2, Les/cd$g;->l:Z

    :goto_2
    if-ge v0, v1, :cond_5

    const/4 v0, 0x1

    goto :goto_3

    :cond_5
    const/4 v0, 0x0

    :goto_3
    xor-int/2addr v0, v2

    if-eqz v0, :cond_6

    .line 8
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->c()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->f:Les/cd$e;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a(Les/cd$e;)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd;->f:Les/cd$e;

    .line 10
    sget v0, Les/z4;->durec_edit_intro_and_outro_invalid:I

    invoke-static {v0}, Les/ec;->a(I)V

    :cond_6
    return-void
.end method

.method private O()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->R()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->a(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->a(Z)V

    return-void
.end method

.method private P()V
    .locals 6

    .line 1
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 3
    iput-object v0, v1, Les/cd;->g:Les/cd$c;

    goto :goto_0

    .line 4
    :cond_0
    iget-object v2, v1, Les/cd;->g:Les/cd$c;

    if-nez v2, :cond_1

    .line 5
    new-instance v2, Les/cd$c;

    invoke-direct {v2}, Les/cd$c;-><init>()V

    iput-object v2, v1, Les/cd;->g:Les/cd$c;

    .line 6
    :cond_1
    iget-object v2, v1, Les/cd;->g:Les/cd$c;

    iget-object v0, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    iput-object v0, v2, Les/cd$c;->d:Landroid/graphics/Bitmap;

    .line 7
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->n:[Ljava/lang/String;

    array-length v2, v0

    add-int/lit8 v2, v2, 0x1

    invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, [Ljava/lang/String;

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->n:[Ljava/lang/String;

    array-length v0, v0

    const-string v3, "BackgroundRender"

    aput-object v3, v2, v0

    const/4 v3, 0x1

    const/16 v5, 0xe

    const-string v4, "addBgPicture"

    move-object v0, p0

    .line 9
    invoke-static/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditPreviewActivity;->a(Landroid/app/Activity;Les/cd;[Ljava/lang/String;ILjava/lang/String;I)V

    return-void
.end method

.method private Q()V
    .locals 4

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->C()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    if-nez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd;->g:Les/cd$c;

    goto :goto_0

    .line 4
    :cond_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v2, v1, Les/cd;->g:Les/cd$c;

    if-nez v2, :cond_1

    .line 5
    new-instance v2, Les/cd$c;

    invoke-direct {v2}, Les/cd$c;-><init>()V

    iput-object v2, v1, Les/cd;->g:Les/cd$c;

    .line 6
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->g:Les/cd$c;

    iget v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->a:I

    iput v2, v1, Les/cd$c;->a:I

    .line 7
    iget v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->b:I

    iput v3, v1, Les/cd$c;->b:I

    .line 8
    iget-object v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->c:Ljava/lang/String;

    iput-object v3, v1, Les/cd$c;->c:Ljava/lang/String;

    .line 9
    iget-object v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    iput-object v3, v1, Les/cd$c;->d:Landroid/graphics/Bitmap;

    const/4 v1, 0x4

    if-eq v2, v1, :cond_3

    const/4 v1, 0x3

    if-ne v2, v1, :cond_2

    goto :goto_1

    .line 10
    :cond_2
    :goto_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->L()V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    invoke-static {v0}, Les/dd;->a(Les/cd;)V

    goto :goto_2

    .line 12
    :cond_3
    :goto_1
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$d;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V

    invoke-static {v1}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void

    .line 13
    :cond_4
    :goto_2
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method private R()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->v:I

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Landroid/graphics/Bitmap;
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->b(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Landroid/graphics/Bitmap;

    move-result-object p0

    return-object p0
.end method

.method private a(Landroid/graphics/Bitmap;)Ljava/lang/String;
    .locals 5

    const/4 v0, 0x0

    if-eqz p1, :cond_2

    .line 13
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_0

    .line 14
    :cond_0
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string v2, "yyyyMMdd_HHmmss"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    new-instance v2, Ljava/util/Date;

    .line 15
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    .line 16
    invoke-static {}, Les/qc$b;->b()Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_1

    return-object v0

    .line 17
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ".jpg"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 18
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 19
    invoke-static {v1, p1}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/io/File;Landroid/graphics/Bitmap;)Ljava/lang/String;

    :cond_2
    :goto_0
    return-object v0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 20
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 21
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 22
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 23
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/graphics/Bitmap;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V
    .locals 1

    .line 6
    iput-object p1, p2, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->t:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->s:Landroid/view/View;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 9
    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->L()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;Landroid/graphics/Bitmap;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->a(Landroid/graphics/Bitmap;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->w:I

    return p1
.end method

.method private b(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Landroid/graphics/Bitmap;
    .locals 3

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return-object v0

    .line 4
    :cond_0
    iget v1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->a:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iget p1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->b:I

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    .line 6
    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    :cond_1
    const/4 v2, 0x1

    if-ne v1, v2, :cond_2

    .line 7
    iget-object v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    goto :goto_0

    :cond_2
    const/4 v2, 0x3

    if-ne v1, v2, :cond_3

    .line 8
    iget-object p1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->c:Ljava/lang/String;

    invoke-static {p1}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    :cond_3
    const/4 v2, 0x4

    if-ne v1, v2, :cond_4

    .line 9
    iget-object v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    :cond_4
    :goto_0
    return-object v0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    return-object p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    return-object p0
.end method

.method private c(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Ljava/lang/String;
    .locals 3

    .line 7
    :try_start_0
    new-instance v0, Ljava/io/File;

    iget-object v1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->c:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 8
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/io/File;->setLastModified(J)Z

    move-result v1

    if-nez v1, :cond_0

    .line 9
    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/i;->a(Ljava/io/File;)Z

    .line 10
    iget-object v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->a(Landroid/graphics/Bitmap;)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception v0

    .line 11
    sget-boolean v1, Les/u6;->a:Z

    if-eqz v1, :cond_0

    .line 12
    invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    .line 13
    :cond_0
    iget-object p1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->c:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->R()V

    return-void
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;)Les/cd;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    return-object p0
.end method


# virtual methods
.method protected C()Z
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_6

    .line 2
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v3, v3, Les/cd;->g:Les/cd$c;

    if-nez v3, :cond_0

    return v2

    .line 3
    :cond_0
    iget v4, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->a:I

    iget v5, v3, Les/cd$c;->a:I

    if-eq v4, v5, :cond_1

    return v2

    :cond_1
    if-ne v4, v2, :cond_2

    return v1

    :cond_2
    const/4 v5, 0x4

    if-ne v4, v5, :cond_3

    return v2

    :cond_3
    const/4 v5, 0x3

    if-ne v4, v5, :cond_4

    .line 4
    iget-object v0, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->c:Ljava/lang/String;

    iget-object v1, v3, Les/cd$c;->c:Ljava/lang/String;

    invoke-static {v0, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    xor-int/2addr v0, v2

    return v0

    :cond_4
    const/4 v5, 0x2

    if-ne v4, v5, :cond_7

    .line 5
    iget v0, v0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->b:I

    iget v3, v3, Les/cd$c;->b:I

    if-eq v0, v3, :cond_5

    const/4 v1, 0x1

    :cond_5
    return v1

    .line 6
    :cond_6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->g:Les/cd$c;

    if-eqz v0, :cond_7

    return v2

    :cond_7
    return v1
.end method

.method protected F()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->Q()V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Ljava/lang/String;
    .locals 2

    if-eqz p1, :cond_1

    .line 10
    iget v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->a:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    .line 11
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->c(Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    const/4 v1, 0x4

    if-ne v0, v1, :cond_1

    .line 12
    iget-object p1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;->e:Landroid/graphics/Bitmap;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->a(Landroid/graphics/Bitmap;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_1
    const/4 p1, 0x0

    return-object p1
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->n:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method protected c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 5

    .line 2
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    .line 3
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->x:Z

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getDuration()I

    move-result v2

    int-to-long v2, v2

    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->a(Ljava/lang/String;JLcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->v()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getDuration()I

    move-result p1

    int-to-long v2, p1

    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->y:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;

    invoke-virtual {v0, v1, v2, v3, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->a(Ljava/lang/String;JLcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView$g;)V

    const/4 p1, 0x0

    .line 6
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->x:Z

    :cond_0
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    const/4 v0, -0x1

    const/16 v1, 0x3e8

    if-ne p1, v1, :cond_0

    if-ne p2, v0, :cond_1

    if-eqz p3, :cond_1

    const-string p1, "SELECTED_MEDIAS"

    .line 1
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 2
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p2

    if-lez p2, :cond_1

    const/4 p2, 0x0

    .line 3
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/data/c;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->c()Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->q:Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;

    if-eqz p2, :cond_1

    .line 5
    invoke-virtual {p2, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/PicturesShowView;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    const/4 p3, 0x1

    if-ne p1, p3, :cond_1

    if-ne p2, v0, :cond_1

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->Q()V

    :cond_1
    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->r:Landroid/view/View;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->P()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->u:Landroid/view/View;

    if-ne p1, v0, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->O()V

    :cond_1
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->m:Les/cd;

    .line 4
    sget p1, Les/y4;->durec_video_edit_add_background_picture_layout:I

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->h(I)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->K()V

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->I()V

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->J()V

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->o:Lcom/esfile/screen/recorder/ui/DuRecorderViewPager;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/bgpicture/AddBGPictureActivity;->A:Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;

    invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->removeOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V

    :cond_0
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "SCREEN_VIDEO_EDIT_ADD_BG_PICTURE"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_ok:I

    return v0
.end method

.method protected y()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_background_image:I

    return v0
.end method
